package com.login.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.login.domain.po.WebUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author 路亚
 * @version 0.1
 * @className WebUserMapper
 * @description
 * @date 2024/12/12 17:23
 * @since jdk11
 */
@Mapper
public interface WebUserMapper extends BaseMapper<WebUser> {

    @Select("select id, nick_name, gender, avatar_url, phone, account_name, account_pwd from web_user where account_name = #{username}")
    WebUser selectByUsername(String username);
}
